public class qiuone {
    public static void main(String[] args) {
        abc(1234);
    }
    public static void abc(int n){
        if(n<10){
            System.out.print(n+" ");
        }else{
            abc(n/10);
            System.out.print(n%10+" ");
        }
    }
}
